<template>
    <!-- 头部 -->
    <div class="dept_title">库区设置</div>
    <div class="dept_where">
        <span>库区名称：</span><el-input class="dept_input" v-model="zone_name" style="width: 240px" />
        <el-button type="primary" class="" @click="queryZone()">查询</el-button>
        <el-button @click="reset">重置</el-button>
        <el-button type="success" @click="addWarehouseareaInfo()">
            <el-icon>
                <Plus />
            </el-icon>
            <span>新增</span>
        </el-button>
        <el-button @click="fhlocation()">返回</el-button>
    </div>



    
</template>

<script setup>
import { ref, onMounted, reactive } from 'vue'
import axios from 'axios';
import dayjs from 'dayjs'
import { ElMessage, ElMessageBox } from 'element-plus';
import { useRouter } from 'vue-router';




</script>



<style scoped>
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* 按钮间距 */
}

/* 响应式调整 */
@media (max-width: 1600px) {
    .action-buttons {
        gap: 4px;
    }

    .action-buttons .el-button {
        padding: 6px 8px;
        font-size: 12px;
    }
}

.el-button--primary {
    position: relative;

}

.button-group {
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
}

.dept_title {
    float: left;
    font-weight: bold;
    margin-top: -10px;
    font-size: 20px;
}

.dept_where {
    display: left;
    margin-left: -800px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.dept_input {
    margin-right: 50px;
}

.switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.status-label {
    font-weight: 500;
    min-width: 90px;
    text-align: center;
    font-size: 13px;
    color: #333;
}
</style>